<table>
    <tbody>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="recordType"><g:message code="b2b.category.recordType" default="Record Type" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: categoryInstance, field: 'recordType', 'errors')}">
                <g:select name="recordType.id" from="${org.icress.fusion.admin.RecordType.list()}" optionKey="id" value="${categoryInstance?.recordType?.id}"  />

            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="serialNumber"><g:message code="b2b.category.serialNumber" default="Serial Number" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: categoryInstance, field: 'serialNumber', 'errors')}">
                <g:textField name="serialNumber" maxlength="6" value="${fieldValue(bean: categoryInstance, field: 'serialNumber')}" />

            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="name"><g:message code="b2b.category.name" default="Name" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: categoryInstance, field: 'name', 'errors')}">
                <g:textField name="name" maxlength="20" value="${fieldValue(bean: categoryInstance, field: 'name')}" />

            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="discount"><g:message code="b2b.category.discount" default="Discount" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: categoryInstance, field: 'discount', 'errors')}">
                <g:textField name="discount" value="${fieldValue(bean: categoryInstance, field: 'discount')}" />

            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="productionCycle"><g:message code="b2b.category.productionCycle" default="Production Cycle" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: categoryInstance, field: 'productionCycle', 'errors')}">
                <g:textField name="productionCycle" value="${fieldValue(bean: categoryInstance, field: 'productionCycle')}" />

            </td>
        </tr>
    
        <tr class="prop">
            <td valign="top" class="name">
                <label for="transportCycle"><g:message code="b2b.category.transportCycle" default="Transport Cycle" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: categoryInstance, field: 'transportCycle', 'errors')}">
                <g:textField name="transportCycle" value="${fieldValue(bean: categoryInstance, field: 'transportCycle')}" />

            </td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name">
                <label for="hasBom"><g:message code="b2b.category.hasBom" default="Has Bom" />:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean: categoryInstance, field: 'hasBom', 'errors')}">
                <g:checkBox name="hasBom" value="${categoryInstance?.hasBom==true}" />
            </td>
        </tr>
    </tbody>
</table>
